from py2neo import Graph, Node, Relationship

graph = Graph("bolt://localhost:7687", auth=("neo4j", "12345678"))


person = Node("Person", name="张三", age=18)
movie = Node("Movie", title="黑客帝国", year=1999)
print(person)
print(movie)

acted_in = Relationship(person, "ACTED_IN", movie, roles=["Neo"])

bob = Node("Person", name="Bob")
knows = Relationship(person, "KNOWS", bob, since=2015)
print(acted_in)
print(knows)
